package com.lnsf.model;

import java.util.Date;

public class MonthlyModel {
	public MonthlyModel(Date date, int count, int gId, String gName) {
		super();
		this.date = date;
		this.count = count;
		this.gId = gId;
		this.gName = gName;
	}
private Date date;
   private int count;
   private int gId;
   private String gName;
public Date getDate() {
	return date;
}
public void setDate(Date date) {
	this.date = date;
}
public int getCount() {
	return count;
}
public void setCount(int count) {
	this.count = count;
}
public int getgId() {
	return gId;
}
public void setgId(int gId) {
	this.gId = gId;
}
public String getgName() {
	return gName;
}
public void setgName(String gName) {
	this.gName = gName;
}
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + count;
	result = prime * result + ((date == null) ? 0 : date.hashCode());
	result = prime * result + gId;
	result = prime * result + ((gName == null) ? 0 : gName.hashCode());
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (!(obj instanceof MonthlyModel))
		return false;
	MonthlyModel other = (MonthlyModel) obj;
	if (count != other.count)
		return false;
	if (date == null) {
		if (other.date != null)
			return false;
	} else if (!date.equals(other.date))
		return false;
	if (gId != other.gId)
		return false;
	if (gName == null) {
		if (other.gName != null)
			return false;
	} else if (!gName.equals(other.gName))
		return false;
	return true;
}
@Override
public String toString() {
	return "MonthlyModel [date=" + date + ", count=" + count + ", gId=" + gId
			+ ", gName=" + gName + "]";
}
}
